Conditional `mount` in Linux: dev or nfs

Posted by o_O Tync on Server Fault See other posts from Server Fault or by o_O Tync
Published on 2010-06-05T18:39:26Z Indexed on 2010/06/08 7:13 UTC
Read the original article Hit count: 247

Filed under:
|
|
|
|

I have a mount point — let it be /media/question — and two possible devices: a physical HDD and a remote NFS folder. Sometimes I plug the device in physically, in other cases I mount it via NFS.

Is there a way to specify both of them in fstab so that executing mount /media/question will preferably choose physical volume, and when it's not available — NFS?

© Server Fault or respective owner

Related posts about linux

Related posts about nfs